package com.itany.corejava.code01_基础;

import java.util.Scanner;

/**
 * @author MissChen
 * @version 1.0
 * @date 2023 年10月23日 10:39
 */
public class Test08_练习 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("-------输入学生信息-------");
        System.out.print("输入学生姓名:");
        String name=sc.next();
        System.out.print("输入学生年龄:");
        int age =sc.nextInt();
        System.out.print("输入学生性别:");
        String sex=sc.next();
        System.out.print("输入学生专业:");
        String major=sc.next();
        System.out.print("输入学生课程:");
        String course=sc.next();
        System.out.print("输入学生成绩:");
        double score=sc.nextDouble();
        System.out.println("姓名:"+name+",年龄:"+age+",性别:"+sex+",专业:"+major+",课程:"+course+",成绩:"+score);

    }
}
